class Config {
  int? creativeGuideCount;
  int? creativeGuideCurr;
  int? creativeGuideShow;
  String? friendRecommendCover;
  String? hostAddr;
  List<IndexTab>? indexTab;
  int? musicRecommendShareScore;
  int? musicShareScore;
  String? playlistRecommendCover;
  int? showGoodShareScore;
  String? showPos1Subtitle;
  String? showPos1Title;
  String? showPos2Title;
  int? showSellTicket;
  int? showShareScore;

  Config(
      {this.creativeGuideCount,
        this.creativeGuideCurr,
        this.creativeGuideShow,
        this.friendRecommendCover,
        this.hostAddr,
        this.indexTab,
        this.musicRecommendShareScore,
        this.musicShareScore,
        this.playlistRecommendCover,
        this.showGoodShareScore,
        this.showPos1Subtitle,
        this.showPos1Title,
        this.showPos2Title,
        this.showSellTicket,
        this.showShareScore});

  Config.fromJson(Map<String, dynamic> json) {
    creativeGuideCount = json['creative_guide_count'];
    creativeGuideCurr = json['creative_guide_curr'];
    creativeGuideShow = json['creative_guide_show'];
    friendRecommendCover = json['friend_recommend_cover'];
    hostAddr = json['host_addr'];
    if (json['index_tab'] != null) {
      indexTab = <IndexTab>[];
      json['index_tab'].forEach((v) {
        indexTab!.add(IndexTab.fromJson(v));
      });
    }
    musicRecommendShareScore = json['music_recommend_share_score'];
    musicShareScore = json['music_share_score'];
    playlistRecommendCover = json['playlist_recommend_cover'];
    showGoodShareScore = json['show_good_share_score'];
    showPos1Subtitle = json['show_pos1_subtitle'];
    showPos1Title = json['show_pos1_title'];
    showPos2Title = json['show_pos2_title'];
    showSellTicket = json['show_sell_ticket'];
    showShareScore = json['show_share_score'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['creative_guide_count'] = this.creativeGuideCount;
    data['creative_guide_curr'] = this.creativeGuideCurr;
    data['creative_guide_show'] = this.creativeGuideShow;
    data['friend_recommend_cover'] = this.friendRecommendCover;
    data['host_addr'] = this.hostAddr;
    if (this.indexTab != null) {
      data['index_tab'] = this.indexTab!.map((v) => v.toJson()).toList();
    }
    data['music_recommend_share_score'] = this.musicRecommendShareScore;
    data['music_share_score'] = this.musicShareScore;
    data['playlist_recommend_cover'] = this.playlistRecommendCover;
    data['show_good_share_score'] = this.showGoodShareScore;
    data['show_pos1_subtitle'] = this.showPos1Subtitle;
    data['show_pos1_title'] = this.showPos1Title;
    data['show_pos2_title'] = this.showPos2Title;
    data['show_sell_ticket'] = this.showSellTicket;
    data['show_share_score'] = this.showShareScore;
    return data;
  }
}

class IndexTab {
  int? end;
  String? name;
  int? start;
  String? url;

  IndexTab({this.end, this.name, this.start, this.url});

  IndexTab.fromJson(Map<String, dynamic> json) {
    end = json['end'];
    name = json['name'];
    start = json['start'];
    url = json['url'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['end'] = this.end;
    data['name'] = this.name;
    data['start'] = this.start;
    data['url'] = this.url;
    return data;
  }
}
